package org.sixtynine.stock.api;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="trades" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="trade" maxOccurs="unbounded" minOccurs="0">
 *                     &lt;complexType>
 *                       &lt;complexContent>
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           &lt;sequence>
 *                             &lt;element name="symbol" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                             &lt;element name="time" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                             &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="volume" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                             &lt;element name="change" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="percentageChange" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="high" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="low" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="sequence" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                           &lt;/sequence>
 *                         &lt;/restriction>
 *                       &lt;/complexContent>
 *                     &lt;/complexType>
 *                   &lt;/element>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *       &lt;attribute name="response" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="lastsequence" type="{http://www.w3.org/2001/XMLSchema}int" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "message",
    "trades"
})
@XmlRootElement(name = "cse")
public class Cse {

    protected String message;
    protected Cse.Trades trades;
    @XmlAttribute
    protected String response;
    @XmlAttribute (required = false)
    protected Integer lastsequence;

    /**
     * Gets the value of the message property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getMessage() {
        return message;
    }

    /**
     * Sets the value of the message property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setMessage(String value) {
        this.message = value;
    }

    /**
     * Gets the value of the trades property.
     * 
     * @return
     *     possible object is
     *     {@link Cse.Trades }
     *     
     */
    public Cse.Trades getTrades() {
        return trades;
    }

    /**
     * Sets the value of the trades property.
     * 
     * @param value
     *     allowed object is
     *     {@link Cse.Trades }
     *     
     */
    public void setTrades(Cse.Trades value) {
        this.trades = value;
    }

    /**
     * Gets the value of the response property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getResponse() {
        return response;
    }

    /**
     * Sets the value of the response property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setResponse(String value) {
        this.response = value;
    }

    /**
     * Gets the value of the lastsequence property.
     * 
     * @return
     *     possible object is
     *     {@link Integer }
     *     
     */
    public Integer getLastsequence() {
        return lastsequence;
    }

    /**
     * Sets the value of the lastsequence property.
     * 
     * @param value
     *     allowed object is
     *     {@link Integer }
     *     
     */
    public void setLastsequence(Integer value) {
        this.lastsequence = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="trade" maxOccurs="unbounded" minOccurs="0">
     *           &lt;complexType>
     *             &lt;complexContent>
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 &lt;sequence>
     *                   &lt;element name="symbol" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *                   &lt;element name="time" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *                   &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}float"/>
     *                   &lt;element name="volume" type="{http://www.w3.org/2001/XMLSchema}int"/>
     *                   &lt;element name="change" type="{http://www.w3.org/2001/XMLSchema}float"/>
     *                   &lt;element name="percentageChange" type="{http://www.w3.org/2001/XMLSchema}float"/>
     *                   &lt;element name="high" type="{http://www.w3.org/2001/XMLSchema}float"/>
     *                   &lt;element name="low" type="{http://www.w3.org/2001/XMLSchema}float"/>
     *                   &lt;element name="sequence" type="{http://www.w3.org/2001/XMLSchema}int"/>
     *                 &lt;/sequence>
     *               &lt;/restriction>
     *             &lt;/complexContent>
     *           &lt;/complexType>
     *         &lt;/element>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "trade"
    })
    public static class Trades {

        protected List<Cse.Trades.Trade> trade;

        /**
         * Gets the value of the trade property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the trade property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getTrade().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link Cse.Trades.Trade }
         * 
         * 
         */
        public List<Cse.Trades.Trade> getTrade() {
            if (trade == null) {
                trade = new ArrayList<Cse.Trades.Trade>();
            }
            return this.trade;
        }


        /**
         * <p>Java class for anonymous complex type.
         * 
         * <p>The following schema fragment specifies the expected content contained within this class.
         * 
         * <pre>
         * &lt;complexType>
         *   &lt;complexContent>
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       &lt;sequence>
         *         &lt;element name="symbol" type="{http://www.w3.org/2001/XMLSchema}string"/>
         *         &lt;element name="time" type="{http://www.w3.org/2001/XMLSchema}string"/>
         *         &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}float"/>
         *         &lt;element name="volume" type="{http://www.w3.org/2001/XMLSchema}int"/>
         *         &lt;element name="change" type="{http://www.w3.org/2001/XMLSchema}float"/>
         *         &lt;element name="percentageChange" type="{http://www.w3.org/2001/XMLSchema}float"/>
         *         &lt;element name="high" type="{http://www.w3.org/2001/XMLSchema}float"/>
         *         &lt;element name="low" type="{http://www.w3.org/2001/XMLSchema}float"/>
         *         &lt;element name="sequence" type="{http://www.w3.org/2001/XMLSchema}int"/>
         *       &lt;/sequence>
         *     &lt;/restriction>
         *   &lt;/complexContent>
         * &lt;/complexType>
         * </pre>
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "symbol",
            "time",
            "price",
            "volume",
            "change",
            "percentageChange",
            "high",
            "low",
            "sequence"
        })
        public static class Trade {

            @XmlElement(required = true)
            protected String symbol;
            @XmlElement(required = true)
            protected String time;
            protected float price;
            protected int volume;
            protected float change;
            protected float percentageChange;
            protected float high;
            protected float low;
            protected int sequence;

            /**
             * Gets the value of the symbol property.
             * 
             * @return
             *     possible object is
             *     {@link String }
             *     
             */
            public String getSymbol() {
                return symbol;
            }

            /**
             * Sets the value of the symbol property.
             * 
             * @param value
             *     allowed object is
             *     {@link String }
             *     
             */
            public void setSymbol(String value) {
                this.symbol = value;
            }

            /**
             * Gets the value of the time property.
             * 
             * @return
             *     possible object is
             *     {@link String }
             *     
             */
            public String getTime() {
                return time;
            }

            /**
             * Sets the value of the time property.
             * 
             * @param value
             *     allowed object is
             *     {@link String }
             *     
             */
            public void setTime(String value) {
                this.time = value;
            }

            /**
             * Gets the value of the price property.
             * 
             */
            public float getPrice() {
                return price;
            }

            /**
             * Sets the value of the price property.
             * 
             */
            public void setPrice(float value) {
                this.price = value;
            }

            /**
             * Gets the value of the volume property.
             * 
             */
            public int getVolume() {
                return volume;
            }

            /**
             * Sets the value of the volume property.
             * 
             */
            public void setVolume(int value) {
                this.volume = value;
            }

            /**
             * Gets the value of the change property.
             * 
             */
            public float getChange() {
                return change;
            }

            /**
             * Sets the value of the change property.
             * 
             */
            public void setChange(float value) {
                this.change = value;
            }

            /**
             * Gets the value of the percentageChange property.
             * 
             */
            public float getPercentageChange() {
                return percentageChange;
            }

            /**
             * Sets the value of the percentageChange property.
             * 
             */
            public void setPercentageChange(float value) {
                this.percentageChange = value;
            }

            /**
             * Gets the value of the high property.
             * 
             */
            public float getHigh() {
                return high;
            }

            /**
             * Sets the value of the high property.
             * 
             */
            public void setHigh(float value) {
                this.high = value;
            }

            /**
             * Gets the value of the low property.
             * 
             */
            public float getLow() {
                return low;
            }

            /**
             * Sets the value of the low property.
             * 
             */
            public void setLow(float value) {
                this.low = value;
            }

            /**
             * Gets the value of the sequence property.
             * 
             */
            public int getSequence() {
                return sequence;
            }

            /**
             * Sets the value of the sequence property.
             * 
             */
            public void setSequence(int value) {
                this.sequence = value;
            }

        }

    }

}
